package org.jeecg.modules.fund.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NumberSerializers;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 用户基金
 * @Author: jeecg-boot
 * @Date:   2024-08-29
 * @Version: V1.0
 */
@Data
@TableName("userhome_fund")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="userhome_fund对象", description="用户基金")
public class UserhomeFund implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**基金id*/
	@Excel(name = "基金id", width = 15)
    @ApiModelProperty(value = "基金id")
    private java.lang.String fundId;
	/**份额*/
	@Excel(name = "份额", width = 15)
    @ApiModelProperty(value = "份额")
    private java.lang.Double num;
	/**(0 冻结 1正常 2部回赎回 3完全赎回)*/
	@Excel(name = "(0 冻结 1正常 2部回赎回 3完全赎回)", width = 15, dicCode = "fund_status")
	@Dict(dicCode = "fund_status")
    @ApiModelProperty(value = "(0 冻结 1正常 2部回赎回 3完全赎回 4赎回中 5锁定中)")
    private java.lang.Integer status;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private java.lang.String orderNum;
	/**第三方订单号*/
	@Excel(name = "第三方订单号", width = 15)
    @ApiModelProperty(value = "第三方订单号")
    private java.lang.String payNum;
	/**bigint*/
	@Excel(name = "bigint", width = 15)
    @ApiModelProperty(value = "bigint")
    private java.lang.Integer userhomeId;
	/**已赎回份额*/
	@Excel(name = "已赎回份额", width = 15)
    @ApiModelProperty(value = "已赎回份额")
    private java.lang.Double redeemNum;
	/**可赎回份额*/
	@Excel(name = "可赎回份额", width = 15)
    @ApiModelProperty(value = "可赎回份额")
    private java.lang.Double canRedeemNum;

    @Excel(name = "基金名", width = 15)
    @TableField(exist = false)
    private String fundname;

    @Excel(name = "基金code", width = 15)
    @TableField(exist = false)
    private String fcode;

    @Excel(name = "用户名", width = 15)
    @TableField(exist = false)
    private String phone;

    @ApiModelProperty(value = "已赚金额")
    private Double profitMoney;

    @ApiModelProperty(value = "已赚金额")
    private Double profitRate;

    @ApiModelProperty(value = "今天赚的钱")
    private Double totayMoney;

    /**风险提示*/
    @Excel(name = "产生利息时间", width = 15)
    @ApiModelProperty(value = "产生利息时间")
    private java.util.Date   profitDay;

}
